package ooday01;
//学生类2
public class Students {
    int Id;
    String name;
    int age;
    String exam;
    String hobby;

    public Students() {
    }
    public Students(int id, String name, int age, String exam, String hobby) {
        Id = id;
        this.name = name;
        this.age = age;
        this.exam = exam;
        this.hobby = hobby;
    }
    void me(){
        System.out.println("我叫"+name+",我的学号是"+Id+"，我喜欢"+hobby);
    }
    void mes(){
        System.out.println(name+"在考"+exam);
    }
    void play(String his){
        System.out.println(name+"和"+his+"一起"+hobby);
    }
}
